package com.buba.service.impl;

import com.buba.pojo.Employee;
import com.buba.pojo.Page;
import com.buba.service.EmployeeService;
import com.buba.service.OrderEmployeeService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
@DubboService
public class OrderEmployeeServiceImpl implements OrderEmployeeService {
    @DubboReference
    private EmployeeService employeeService;



    @Override
    public Employee selEmployeeById(Integer employeeld) {
        return employeeService.selEmployeeById( employeeld);
    }


    @Override
    public List<Employee> selEmployee(Map<String, Object> map) {
        return employeeService.selEmployee( map);
    }

    @Override
    public Long selEmployeeCount(Map<String, Object> map) {
        return employeeService.selEmployeeCount( map);
    }

    @Override
    public Long addEmp(Map<String, Object> parameterMap) {
        return employeeService.addEmp( parameterMap);
    }

    @Override
    public Integer delEmployee(List<String> list) {
        return employeeService.delEmployee(list);
    }

    @Override
    public Integer updEmp(Map<String, Object> parameterMap) {
        return employeeService.updEmp(parameterMap);
    }

    @Override
    public Long selCountAll() {
        return employeeService.selCountAll();
    }

    @Override
    public List<Employee> selEmployeeAll(Page<Employee> page) {
        return employeeService.selEmployeeAll(page);
    }
}
